<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use common\models\Recharge;

/* @var $this yii\web\View */
/* @var $model common\models\Recharge */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => '充值', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="recharge-view">

    <h1><?= Html::encode($this->title) ?></h1>

   <!--  <p>
        <?= Html::a('更改', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('删除', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => '确定删除此项？',
                'method' => 'post',
            ],
        ]) ?>
    </p> -->

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'user.username',
            'relation_id',
            'money',
            'poundage',
            [
                'attribute' => 'status',
                'value' => Recharge::itemAlias("status", $model->status)
            ],
            'bank_serial_no',
            [
                'attribute' => 'pay_type',
                'value' => Recharge::itemAlias("pay_type", $model->pay_type)
            ],
            'create_time',
            'update_time',
        ],
    ]) ?>

</div>
